<?php

/**
 * Created by PhpStorm.
 * User: thorjiang
 * Date: 2018/5/9
 * Time: 18:50
 */
namespace App\Exceptions;

use Exception;

/**
 * Class ResponseException
 * @package App\Exceptions
 */
class ResponseException extends Exception
{
    /**
     * ResponseException constructor.
     * @param string $code
     * @param string $msg
     */
    public function __construct($code, $msg = '')
    {
        empty($msg) && $msg = config('code_msg.'.$code);
        parent::__construct($msg, $code);
    }

}
